home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1191 / 1191.xpi / chrome / reminderfox.jar / content / reminderfox / searchbar / rmSearch.xml < prev    next >
Extensible Markup Language  |  2008-10-19  |  2KB  |  77 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="SearchBindings"
  4.    xmlns="http://www.mozilla.org/xbl"
  5.    xmlns:html="http://www.w3.org/1999/xhtml"
  6.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.    xmlns:xbl="http://www.mozilla.org/xbl">
  8.  
  9.   <binding id="searchbar" extends="chrome://global/content/bindings/textbox.xml#textbox">
  10.         <resources>
  11.             <stylesheet src="chrome://reminderfox/skin/rmSearchBox.css"/>
  12.         </resources>
  13.  
  14.         
  15.         <content> 
  16.             <children/>
  17.             <xul:hbox class="quick-search-textbox textbox-input-box" flex="1">
  18.             <html:input class="textbox-input" flex="1" anonid="input" 
  19.                     allowevents="true"
  20.                     xbl:inherits="onfocus,onblur,value,type,maxlength,disabled,size,readonly,tabindex,accesskey"/>
  21.             </xul:hbox>
  22.             
  23.             <xul:toolbarbutton id="quick-search-clearbutton" xbl:inherits="" 
  24.                 disabled="true" class="quick-search-clearbutton" 
  25.                 onclick="rmOnBlueClearButton(); return false;"/>
  26.             </content>
  27.                 <!-- onclick="rmOnClearSearch(); return false;"/ -->
  28.         
  29.         <implementation>
  30.             <constructor>
  31.                 <![CDATA[    // initialize the quick search mode based 
  32.                                          
  33.                 ]]>
  34.             </constructor>
  35.             <property name="clearButtonShown" 
  36.                     onget="return document.getElementById('quick-search-clearbutton')
  37.                         .getAttribute('clearButtonShown') == 'true';"
  38.                     onset="document.getElementById('quick-search-clearbutton')
  39.                         .setAttribute('clearButtonShown', val); return val;"
  40.             />
  41.           
  42.         </implementation>
  43.         
  44.         <handlers>
  45.             <handler event="input">
  46.             <![CDATA[ 
  47.               if (this.value) {
  48.                 rmOnInputQSearch(this);
  49.               }    
  50.             ]]>
  51.             </handler>
  52.         </handlers>
  53.         
  54.   </binding>
  55.   
  56.   <binding id="searchBarDropMarker">
  57.         <resources>
  58.           <stylesheet src="chrome://reminderfox/skin/rmSearchBox.css"/>
  59.         </resources>
  60.         
  61.         <content popup="_child">
  62.             <children/>
  63.           
  64.             <xul:stack flex="1">
  65.                 <xul:hbox align="center">
  66.                   <xul:image class="qsChange" xbl:inherits="src"/>
  67.                 </xul:hbox>
  68.                 
  69.                 <xul:hbox align="center">
  70.                   <xul:image class="qsChange-dropmarker"/>
  71.                 </xul:hbox>
  72.             </xul:stack>
  73.         </content>  
  74.   </binding>
  75.  
  76. </bindings>
  77.